<script>
import common from '@/base/common.js';
import initGlobalData from '@/uni-sdk/init-global-data.js';
// import '@/uni-sdk/config-ucharts.js';
// import "@/sl-uni-sdk/lib/mqtt.js";

//组件设置默认值
// import { Api } from '@/base/api/common';
// import { setDefault } from '@/uni-sdk/components/common/media-list-upload/setting.js';
// setDefault({
// 	defaultUrl: common.baseUrl + Api.upload,
// 	defaultParams: { },
// });

export default {
	onLaunch: function () {
		console.log('App Launch');
	},
	onShow: function () {
		console.log('App Show');
	},
	onHide: function () {
		console.log('App Hide');
	},
	globalData: initGlobalData({
		common,
		log() {
			if (common.debug) {
				console.log.apply(console, arguments);
			}
		},
	}),
};
</script>

<style lang="scss">
// @use "sass:math";
@import '~@/uni.scss';
/*每个页面公共css */
@import '~@/uni-sdk/style/iconfont.css';
@import '~@/uni-sdk/style/iconfont-weapp-icon.css';
@import '~@/uni-sdk/style/atom/atom.scss';
page {
	font-size: 0;
	background-color: $bg-color-1;
}
//重写部分uni-ui组件样式
.uni-load-more {
	.uni-load-more__text {
		color: $color-secondary !important;
		font-size: 30rpx;
	}
}

.csc-rich-text {
	font-size: 14px;
}
.csc-rich-text img {
	width: 100% !important;
	height: auto !important;
}
</style>
